import http from "./HttpUtil";
import URL from "../Model/URL";

async function GetAuthCode(phone,type){
    const url=URL.GetAuthCode;
    // console.log(URL.GetURL(url));
    return await http.GetData(URL.GetURL(url),{phone:phone,type:type})
            .then(response=>{
                return response;
            },reject=>{
                return null;
            });
}
export default {GetAuthCode}